<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>使用emoji</title>
    <style>
      html,
      body,
      div,
      span,
      applet,
      object,
      iframe,
      h1,
      h2,
      h3,
      h4,
      h5,
      h6,
      p,
      blockquote,
      pre,
      a,
      abbr,
      acronym,
      address,
      big,
      cite,
      code,
      del,
      dfn,
      em,
      img,
      ins,
      kbd,
      q,
      s,
      samp,
      small,
      strike,
      strong,
      sub,
      sup,
      tt,
      var,
      b,
      u,
      i,
      center,
      dl,
      dt,
      dd,
      ol,
      ul,
      li,
      fieldset,
      form,
      label,
      legend,
      table,
      caption,
      tbody,
      tfoot,
      thead,
      tr,
      th,
      td,
      article,
      aside,
      canvas,
      details,
      embed,
      figure,
      figcaption,
      footer,
      header,
      hgroup,
      menu,
      nav,
      output,
      ruby,
      section,
      summary,
      time,
      mark,
      audio,
      video {
        margin: 0;
        padding: 0;
        border: 0;
        font-size: 100%;
        font: inherit;
        vertical-align: baseline;
      }

      .app {
        width: 100%;
        height: 100vh;
        background-color: #f5f5f5;
      }

      .main {
        width: 1080px;
        min-width: 1080px;
        height: 100%;
        margin: 0 auto;
        padding: 16px 24px;
        box-sizing: border-box;
        background-color: #fff;
      }

      .toolbar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        box-sizing: border-box;
      }

      .emoji-btn {
        cursor: pointer;
        font-size: 18px;
        color: #909090;
      }

      .primary-btn {
        display: inline-block;
        line-height: 1;
        white-space: nowrap;
        cursor: pointer;
        background-color: #409eff;
        border: 1px solid #409eff;
        color: #fff;
        -webkit-appearance: none;
        text-align: center;
        box-sizing: border-box;
        outline: none;
        margin: 0;
        transition: 0.1s;
        font-weight: 500;
        padding: 12px 20px;
        font-size: 14px;
        border-radius: 4px;
      }

      .primary-btn:active,
      .primary-btn:hover {
        background: #66b1ff;
        border-color: #66b1ff;
        color: #fff;
      }

      .textarea {
        width: 100%;
        height: 80px;
        margin-top: 16px;
      }

      .clearfix {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
      }

      li {
        list-style: none;
        margin: 6px;
      }

      .content {
        margin-top: 24px;
        width: 100%;
        color: #323233;
        font-size: 16px;
        font-weight: bold;
      }
    </style>
    <script src="/lib/jquery-3.6.0.min.js"></script>
    <script src="/lib/emoji-lib/emoji-list-with-image.js"></script>
    <script src="/lib/emoji-lib/punycode.js"></script>
    <script src="/lib/emoji-lib/punycode.min.js"></script>
    <script src="/lib/emoji-lib/emoji.js"></script>
  </head>
  <body>
    <div class="app">
      <div class="main">
        <p>发布动态</p>
        <textarea
          class="textarea"
          maxlength="280"
          value=""
          oninput="handleInput(this)"
        ></textarea>
        <div class="toolbar">
          <span class="emoji-btn">表情</span>
          <button class="primary-btn">发布动态</button>
        </div>
        <div class="emoji">
          <div class="emoji-cont"></div>
        </div>
        <div class="content"></div>
      </div>
    </div>

    <script type="text/javascript" src="./index.js"></script>
    <script src="http://pv.sohu.com/cityjson?ie=utf-8"></script>
    <script type="text/javascript">
      $(".main").append(returnCitySN["cip"] + "," + returnCitySN["cname"]);
    </script>
  </body>
</html>
